package test2;

public class demo75 {
/*    public ListNode reverseList(ListNode head) {
        Stack<ListNode> st = new Stack<>();
        while(head!=null)
        {
            st.push(head);
            head = head.next;
        }
        if(st.isEmpty())
            return null;
        ListNode cur = st.pop();
        ListNode head1 = cur;
        while(!st.isEmpty())
        {
            cur.next = st.pop();
            cur = cur.next;
        }
        cur.next = null;
        return head1;
    }*/
}
